Update CreationSource.java#17948
Conversation
Null check on resourceType
|
Thank you for your contribution RaRe2604! We will review the pull request and get back to you soon. |
|
Hi @RaRe2604 If the resource type is null, does it mean that the source resource ID/URI is not correctly provided? Note that checkstyle requires 4 space indention. |
|
Hi @weidongxu-microsoft Thanks I'll take care of the style. Yes, resourceType is not checked for null and can throw NullPointerException. Example: A simple tweak to avoid NPE |
|
@RaRe2604 As long as the checkstyle passes, we can merge the fix. |
modified respective to Style check
Modified for Style check
|
@weidongxu-microsoft It will continue the flow. |
[Hub Generated] Review request for Microsoft.Devices to add version stable/2022-02-05 (Azure#17948) * Adds base for updating Microsoft.Devices from version stable/2021-10-15 to version 2022-02-05 * Updates readme * Updates API version in new specs and examples * definition changes * example changes * no comments * swagger modelval fix #1 * general validation fix #1 * revert readonly change (breaking change) * added locatio pvtEp example * misplaced location param * location in PvtEConn response * header addition * headers #2 * example change with location sans spec * header nesting change * header under headers * header example
Null check on resourceType